class RenameAutoscansToRules < ActiveRecord::Migration
  def self.up
    rename_table(:autoscans, :rules)
    Job.find_all_by_name("apply_autoscans").each{|j| j.name = "apply_rules"; j.save}
  end

  def self.down
    rename_table(:rules, :autoscans)
  end
end
